package com.shortlink.common.base;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 数据库持久层对象基础属性
 *
 * @author wp
 */
@Data
public class BaseDO {
    public static final String DEL_FLAG_NAME = "del_flag";
    public static final Integer DEL_FLAG_SUCCESS = 1;
    public static final Integer DEL_FLAG_FAIL = 0;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime updateTime;
}
